package com.s59.ch01.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

public class Employee {
    private Integer id;
    private String account;
    @NotEmpty(message = "名字不能为空")
    private String realname;
    @NotNull(message = "性别不能为空")
    private Integer sex;
    @NotEmpty(message = "个人简介不能为空")
    private String ms;
    @NotNull(message = "类型不能为空")
    private Integer bmid;
    @NotNull(message = "生日不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    @NotEmpty(message = "电话不能为空")
    private String phone;
    private String idcardzm;
    private String idcardbm;
    private String bmname;
    private String img;
    private List<String> list;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getMs() {
        return ms;
    }

    public void setMs(String ms) {
        this.ms = ms;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Integer getBmid() {
        return bmid;
    }

    public void setBmid(Integer bmid) {
        this.bmid = bmid;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdcardzm() {
        return idcardzm;
    }

    public void setIdcardzm(String idcardzm) {
        this.idcardzm = idcardzm;
    }

    public String getIdcardbm() {
        return idcardbm;
    }

    public void setIdcardbm(String idcardbm) {
        this.idcardbm = idcardbm;
    }

    public String getBmname() {
        return bmname;
    }

    public void setBmname(String bmname) {
        this.bmname = bmname;
    }

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }
}
